package com.sskj.community.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.community.ui.activity.PublishActivity;
import com.sskj.lib.http.JsonCallBack;

public class PublishActivityPresenter extends BasePresenter<PublishActivity> {

    public void SubmitText(String title,String content) {
        httpService.setTextSubmit(title,content)
                .tag(this)
                .execute(new JsonCallBack<HttpData>(this) {
                    @Override
                    public void onSuccess(Response<HttpData> response) {
                        mView.setTextSuccess();
                    }
                });
    }
}
